<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>修改连载内容</title>
<link href="../member/templets/style/base.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="js/main.js"></script>
<script language="javascript" type="text/javascript" src="js/story.js"></script>
</head>
<body>
<div id="main">
  <?php include(DEDEMEMBER."../templets/head.htm"); ?>
  <div id="content" class="w960 clearfix">
    <?php include(DEDEMEMBER."./templets/menu.php"); ?>
    <div id="mcpmain">
      <div id="appTab">
        <ul>
          <li class="thisTab"><a href="mybooks.php"><span>连载书目</span></a></li>
          <li><a href="story_list_content.php"><span>连载内容</span></a></li>
        </ul>
      </div>
      <div id="mainCp">
      <h3 class="meTitle"><strong>&nbsp;修改连载</strong></h3>  
        <form class="mL10 mR10 mTB10" action='story_edit_content_action.php' method='post'>
          <input type='hidden' name='cid' value='<?php echo $cid; ?>' />
          <input type='hidden' name='bookid' value='<?php echo $bookid; ?>' />
          <input type='hidden' name='catid' value='<?php echo $catid; ?>' />
          <input type='hidden' name='bookname' value='<?php echo str_replace("'","`",$bookname); ?>' />
          <table cellspacing="1" class="submit" width="100%">
              <tbody>
              <tr>
                <td width="15%" align="right" valign="top">隶属连载：</td>
                <td><?php echo $bookname; ?></td>
              </tr>
              <tr>
                <td align="right" valign="top">小节标题：</td>
                <td><input name="title" type="text" class="text" id="title" value="<?php echo $contents['title'];?>" size="45" /></td>
              </tr>
              <tr>
                <td align="right" valign="top">隶属章节：</td>
                <td><select name="chapterid" size="5" id="chapterid">
                    <?php
								foreach($chapters as $k=>$v){
								if($k==$contents['chapterid']){ echo "<option value='$k' selected>第{$chapnums[$k]}章 $v</option>\r\n"; }
								else echo "<option value='$k'>第{$chapnums[$k]}章 $v</option>\r\n";
								}
								?>
                  </select>
                  <hr />
                  <input name="addchapter" type="checkbox" id="addchapter" value="1" <?php echo(count($chapters)>0 ? "" : " checked"); ?> />
                  <label for="addchapter">添加新章节:</label>
                  <input name="chapternew" type="text" class="text" id="chapternew" value="默认章节" size="30" />
                  <br />
                </td>
              </tr>
              <tr>
                <td align="right" valign="top">在章节中的顺序：</td>
                <td><input name="sortid" type="text" class="text" id="sortid" value="<?php echo $contents['sortid'];?>" size="5" /></td>
              </tr>
              <tr>
                <td align="right" valign="top">章节内容：</td>
                <td><?php GetEditor("body",GetBookText($contents['id']),300,"MemberLit"); ?></td>
              </tr>
            </tbody>
            <tfoot>
              <tr>
                <td height="45" align="right" valign="top">&nbsp;</td>
                <td height="45"><button class="button2" type="submit">提交</button>
                  <button class="button2 mL10" type="reset" onclick="location.reload();">重置</button></td>
              </tr>
            </tfoot>
          </table>
        </form>
        </div>
        <!--主操作区域 -->
      </div>
 <div class="clear"></div>
    </div>
  </div>
<?php include(DEDEMEMBER."./templets/foot.htm"); ?>
</div>
</body>
</html>